Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix world border filter NPE #1052

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Fix world border filter NPE #1052

merged 1 commit into from
Sep 2, 2022

Conversation

Pablete1234
Copy link
Member

@Pablete1234 Pablete1234 commented Aug 29, 2022

World border creates a monostable filter but does not register it in the filter context, that means that on match load the reactor for it is not created, which causes it to NPE and not work.

The fix was supposed to be simple: add it to the context. However along the way i discovered significant issues with context not actually putting the added stuff in the correct lists, and getAll not properly returning it, making it still not work. After all these changes tho, it finally does work.

Fixes #1051

Signed-off-by: Pablete1234 <[email protected]>
@Pablete1234 Pablete1234 added bug Something isn't working urgent Breaks the plugin labels Aug 29, 2022
@Pablete1234 Pablete1234 requested a review from Electroid as a code owner August 29, 2022 14:49
@Pablete1234 Pablete1234 added the ready PR is ready to merge label Sep 1, 2022
@Electroid Electroid merged commit 1081794 into dev Sep 2, 2022
@Electroid Electroid deleted the fix-worldborder branch September 2, 2022 21:53
Samuel-Roach pushed a commit to Samuel-Roach/PGM that referenced this pull request Sep 3, 2022
Signed-off-by: Pablete1234 <[email protected]>
Signed-off-by: Samuel Roach <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready PR is ready to merge urgent Breaks the plugin
Development

Successfully merging this pull request may close these issues.

World border module does not work with dynamic filters
2 participants